<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script src="../js/echarts.js"></script>
    <script type="text/javascript">

      window.onload = function (){
          var chartDom = document.getElementById('main');
          var myChart = echarts.init(chartDom);
          var option;

          option = {
              xAxis: {
                  type: 'category',
                  data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun', 'aaaa']
              },
              yAxis: {
                  type: 'value'
              },
              series: [
                  {
                      data: [10, 2000, 150, 80, 70, 110, 130, 1000],
                      type: 'bar'
                  }
              ]
          };

          option && myChart.setOption(option);
      }

    </script>
</head>
<body>

    <div id="main" style="width: 800px;height: 500px;">

    </div>

</body>
</html>